<%-- 
    Document   : registroUsuario
    Created on : 3/06/2013, 11:54:15 AM
    Author     : RUBÉN
--%>

<%@page import="java.util.Calendar"%>
<%@taglib prefix="spring"  uri ="http://www.springframework.org/tags" %>
<%@taglib prefix="form"  uri ="http://www.springframework.org/tags/form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
 
<!DOCTYPE html>
<html>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Registro Usuario</title>
    </head>
    <body>
    <body>
        <h1>Registro Usuario</h1>

        <form:form method="POST" action="registroUsuario.htm">

            <div alig="center">
            <table align="center">                           
                <tr>
                    <td><form:label path="nombre"><strong>Nombre</strong></form:label></td>
                    <td><form:input path="nombre" /></td>
                </tr>
                <tr>
                    <td><form:label path="apellido"><strong>Apellido</strong></form:label></td>
                    <td><form:input path="apellido" /></td>
                </tr>  
                <tr>
                    <td><strong>Sexo</strong></td>
                    <td><select name = "sex"><option value="M">Masculino</option>
                            <option value="F">Femenino</option>
                        </select>
                    </td>
                </tr>  
                
                <tr>
                    <td><strong>Privacidad</strong></td>
                    <td><select name = "pri"><option value="F">Público</option>
                            <option value="T">Privado</option>
                        </select>
                    </td>
                </tr>  
                
                <tr>
                    <td><form:label path="fechaNacimiento"><strong>Fecha Nacimiento</strong></form:label></td>
                    <td><form:input path="fechaNacimiento" /></td>
                </tr>
                <tr>
                    <td><form:label path="descripcion"><strong>Descripción</strong></form:label></td>
                    <td><form:textarea path="descripcion" /></td>
                </tr>
                <tr>
                    <td><form:label path="correoElectronico"><strong>Correo electrónico</strong></form:label></td>
                    <td><form:input path="correoElectronico" /></td>
                </tr>
                <tr>
                    <td><form:label path="numeroDocumento"><strong>Número de documento</strong></form:label></td>
                    <td><form:input path="numeroDocumento" /></td>
                </tr>
                <tr>
                    <td><form:label path="direccion"><strong>Dirección</strong></form:label></td>
                    <td><form:input path="direccion" /></td>
                </tr>
                <tr>
                    <td><form:label path="celular"><strong>Celular</strong></form:label></td>
                    <td><form:input path="celular" /></td>
                </tr>
                <tr>
                    <td><form:label path="foto"><strong>Foto</strong></form:label></td>
                    <td><form:input path="foto" /></td>
                </tr>
                <tr>
                    <td><form:label path="contrasena"><strong>Contraseña</strong></form:label></td>
                    <td><form:password path="contrasena" /></td>
                </tr> 
                <tr>
                    <td><strong>Ciudad</strong></td>
                    <td><select name="city"> 
                            <c:forEach items ="${ciudades}" var="ciu">
                                <option value="${ciu.key}">${ciu.value}</option> 
                            </c:forEach>
                        </select> 
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" value="registrar usuario"/>
                    </td>
                </tr>
            </table>	
            </div>
            <%--   </form> --%>
        </form:form>
        <%--      </spring:nestedPath> --%> </body>
</body>
</html>
